package com.wkt.ggkt.vod.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wkt.ggkt.model.vod.Course;
import com.wkt.ggkt.vo.vod.CourseFormVo;
import com.wkt.ggkt.vo.vod.CoursePublishVo;
import com.wkt.ggkt.vo.vod.CourseQueryVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wkt
 * @since 2022-07-05
 */
public interface CourseService extends IService<Course> {

    Map<String, Object> findPageCourse(Page<Course> pageParam, CourseQueryVo courseQueryVo);

    Long saveCourseInfo(CourseFormVo courseFormVo);

    /**
     * 根据课程id查询课程信息
     * @param id
     * @return
     */
    CourseFormVo getCourseById(Long id);

    /**
     * 根据课程id修改课程信息
     * @param courseFormVo
     * @return
     */
    int updateCourseById(CourseFormVo courseFormVo);

    CoursePublishVo getPublishCourseVo(Long id);

    void publishCourse(Long id);

    void removeCourse(Long id);
}
